/*
 *  CSpaceship.h
 *  MyCom
 *
 *  Created by 黄 鑫 on 07-10-12.
 *  Copyright 2007 __MyCompanyName__. All rights reserved.
 *
 */

#include "Interface.h"

class CSpaceship{
protected:
	int m_nPosition;
	int m_nAcceleration;
	int m_nColor;
public:
		CSpaceship(){
			m_nPosition = m_nAcceleration = m_nColor = 0;
		}
	class XMotion : public IMotion
	{
	public:
		XMotion (){ // do someting function should do!	}
		virtual void Fly ();
		virtual int& GetPosition();
	} m_xMotion;
	
	class XVisual : public IVisual
	{
	public:
		XVisual(){	}
		virtual void Display (){	};
	} m_xVisual;
	
	friend class XMotion;
	friend class XVisual;
}